from marajo.appengine.ext import db
from marajo.appengine.api.users import User

class Client(db.Model):
    """
    Client information
    """
    name = db.StringProperty(verbose_name="Client Name")
    primary_contact = db.ReferenceProperty(User, collection_name="clients_primary_contact_of", verbose_name="Primary Contact")
    billing_contact = db.ReferenceProperty(User, collection_name="clients_billing_contact_of", verbose_name="Billing Contact")
    address = db.StringProperty(verbose_name="Billing Address")

    def __str__(self):
        return self.name
